home *** CD-ROM | disk | FTP | other *** search
-
-
-
-
- RESTORE(UNIX) 3/14/79 RESTORE(UNIX)
-
-
-
- NAME
- restore - recover from an INGRES or UNIX crash.
-
- SYNOPSIS
- _r_e_s_t_o_r_e [ -_a ] [ -_s ] [ +__w ] [ database ... ]
-
- DESCRIPTION
- _R_e_s_t_o_r_e is used to restore a data base after an INGRES or
- UNIX crash. It should always be run after any abnormal ter-
- mination to ensure the integrity of the data base.
-
- In order to run restore, you must be the DBA for the data-
- base you are restoring or the INGRES superuser and specify
- the -_s flag.
-
- If no databases are specified then all databases for which
- you are the DBA are restored. All databases will be re-
- stored if the INGRES superuser has specified the -_s flag.
-
- If the -_a flag is specified you will be asked before restore
- takes any serious actions. It is advisable to use this flag
- if you suspect the database is in bad shape. Using
- /dev/null as input with the -_a flag will provide a report of
- problems in the data base. If there were no errors while
- restoring a database, _p_u_r_g_e will be called, with the same
- flags that were given to _r_e_s_t_o_r_e, to remove unwanted files
- and system temporaries. _R_e_s_t_o_r_e may be called with the -_f
- and/or -_p flags for _p_u_r_g_e. Unrecognized files and expired
- relations are not removed unless the proper flags are given.
- In the case of an incomplete destroy, create or index _r_e_-
- _s_t_o_r_e will not delete files for partially created or des-
- troyed relations. _P_u_r_g_e must be called with the -_f flag to
- accomplish this.
-
- _R_e_s_t_o_r_e locks the data base while it is being processed. If
- a data base is busy _r_e_s_t_o_r_e will report this and go on to
- the next data base. If standard input is not a terminal _r_e_-
- _s_t_o_r_e will wait for the data base to be free. If the -_w
- flag is set _r_e_s_t_o_r_e will not wait regardless of standard in-
- put. If +_w is set it will always wait.
-
- _R_e_s_t_o_r_e can recover a database from an update which had fin-
- ished filling the batch file. Updates which did not make it
- to this stage should be rerun. Similarly modifies which
- have finished recreating the relation will be completed (the
- relation relation and attribute relations will be updated).
- If a destroy was in progress it will be carried to comple-
- tion, while a create will almost always be backed out. Des-
- troying a relation with an index should destroy the index so
- _r_e_s_t_o_r_e may report that a secondary relation has been found
- with no primary.
-
- If interrupt (signal 2) is received the current database is
- closed and the next, if any, is processed. Quit (signal 3)
- will cause restore to terminate.
-
- EXAMPLE
- restore -f demo
- restore -a grants < /dev/null
-
- DIAGNOSTICS
- All diagnostics are followed by a tuple from a system rela-
- tions.
-
- ``No relation for attribute(s)'' - the attributes listed
- have no corresponding entry in the relation relation
- ``No primary relation for index'' - the tuple printed is the
- relation tuple for a secondary index for which there is
- no primary relation. The primary probably was des-
- troyed the secondary will be.
- ``No indexes entry for primary relation'' - the tuple is for
- a primary relation, the relindxd domain will be set to
- zero. This is the product of an incomplete destroy.
- ``No indexes entry for index'' - the tuple is for a secon-
- dary index, the index will be destroyed. This is the
- product of an incomplete destroy.
- ``_r_e_l_n_a_m_e is index for'' - an index has been found for a
- primary which is not marked as indexed. The primary
- will be so marked. This is probably the product of an
- incomplete index command. The index will have been
- created properly but not modified.
- ``No file for'' - There is no data for this relation tuple,
- the tuple will be deleted. If, under the -_a option,
- the tuple is not deleted purge will not be called.
- ``No secondary index for indexes entry'' - An entry has been
- found in the indexes relation for which the secondary
- index does not exist (no relation relation tuple). The
- entry will be deleted.
-
- SEE ALSO
- purge(unix)
-
- BUGS
- If no database names are given, only the databases located
- in the directory _d_a_t_a/_b_a_s_e are restored, and not the old da-
- tabases in _d_a_t_a_d_i_r. Explicit database names still work for
- databases in either directory.
-
-
-